*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  width: 100%;
  max-width: 100%;
  margin: 0;
  padding: 0;
  font-family: 'Pacifico', 'Cookie', 'Lobster', 'Parisienne', 'Alex Brush', cursive;
  font-size: 18px;
  font-weight: 500;
  letter-spacing: 0.5px;
  line-height: 1.6;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  text-rendering: optimizeLegibility;
}

a {
  text-decoration: none;
}

h1,
h2,
h3,
h4,
h5,
h6 {
  font-weight: 700;
  letter-spacing: 1px;
  margin-top: 1.5em;
  margin-bottom: 0.8em;
}

h1 {
  font-size: 2.5em;
}

h2 {
  font-size: 2em;
}

h3 {
  font-size: 1.7em;
}

h4 {
  font-size: 1.4em;
}

h5 {
  font-size: 1.2em;
}

h6 {
  font-size: 1.1em;
}

p {
  margin-bottom: 1.2em;
}

.custom-block {
  border-radius: 6px;
  padding: 12px 16px;
  margin: 16px 0;
  border-left: 4px solid;
}

.custom-block.tip {
  background: #f6ffed;
  border-color: #52c41a;
}

.custom-block.info {
  background: #e6f7ff;
  border-color: #1890ff;
}

.custom-block.warning {
  background: #fffbe6;
  border-color: #faad14;
}

.custom-block.danger {
  background: #fff1f0;
  border-color: #ff4d4f;
}

/* 全局markdown样式修复 */
.markdown-body {
  max-width: 100%;
}

.markdown-body table {
  display: block;
  max-width: 100%;
}

.markdown-body pre {
  max-width: 100%;
}

.markdown-body img {
  max-width: 100%;
  height: auto;
}
